package app.productmanagement.web.sys_User.controller;

import app.productmanagement.Pojo.Result;
import app.productmanagement.web.sys_User.Pojo.LoginRequest;
import app.productmanagement.web.sys_User.Pojo.RegisterRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class UserController {

    // 登录端点
    @PostMapping("/login")
    public Result<?> login(@RequestBody LoginRequest loginRequest) {
        // TODO: 实现登录逻辑
        return Result.success("登录成功");
    }

    // 注册端点
    @PostMapping("/register")
    public Result<?> register(@RequestBody RegisterRequest registerRequest) {
        // TODO: 实现注册逻辑
        return Result.success("注册成功");
    }
}
